<?php  
	function getConnection()
	{
	    $conn = new mysqli('localhost', 'N02045914', 's579524', 'N02045914_db');
	    if(mysqli_connect_errno())
	    {
	    	die("Error: " . mysqli_connect_error());
	    	exit;
	    }
	    return $conn;
	}
?>